<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\Car */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="car-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'c_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'b_id')->textInput() ?>

    <?= $form->field($model, 'p_id')->textInput() ?>

    <?= $form->field($model, 'm_id')->textInput() ?>

    <?= $form->field($model, 'shangpai_time')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mileage')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'biansu')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'paifang')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'shangpai_place')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 's_id')->textInput() ?>

    <?= $form->field($model, 'a_id')->textInput() ?>

    <?= $form->field($model, 'master_id')->textInput() ?>

    <?= $form->field($model, 'nianjian_time')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'shangye_time')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'guohu')->textInput() ?>

    <?= $form->field($model, 'car_desc')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'car_desx')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
